package com.ly.ymall.order.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ly.ymall.pojo.UserInfo;
import com.ly.ymall.service.UserInfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
public class OrderController {


    @Reference
    private UserInfoService userInfoService;

    @RequestMapping("/getUserById2")
    public UserInfo getUserById(@RequestParam int id){
        UserInfo userInfo = userInfoService.getUserInfoById(id);
        return userInfo;
    }
}
